package xin.xueqing.base.common.Enum.base;

import com.alibaba.fastjson.annotation.JSONType;
import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @author: xueqing wang
 * @date: 2021/3/26
 * @description:
 **/

public enum QuartzState implements IEnum<Integer> {
    START( 0,"启动"),
    STOP( 1,"暂停"),
    ;
    private Integer code;
    private String desc;
    private QuartzState(Integer code, String desc){
        this.code=code;
        this.desc=desc;
    }
    @JsonValue
    public Integer getCode(){
        return this.code;
    }


    public String getDesc(){
        return this.desc;
    }

    @Override
    public String toString() {
        return this.desc;
    }


    @Override
    public Integer getValue() {
        return this.code;
    }
}
